package com.example.api;

import com.example.model.ProductInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "product-service")
public interface ProductApi {
    @RequestMapping("/product/{productId}")
    ProductInfo getProductById(@PathVariable("productId") Integer productId);
}
